package com.fjec.compensate.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.sql.Blob;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.apache.ibatis.type.BlobTypeHandler;

/**
 * <p>
 * 021.消息队列补偿异常表
 * </p>
 *
 * @author admin
 * @since 2020-10-20
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "biz_mq_compensate_err", autoResultMap = true)
public class BizMqCompensateErr implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键Id
     */
    @TableId("Id")
    private Long id;

    /**
     * 消息类型 0=实物订单消息	1=服务订单消息	2= 支付消息	3=生成shopNum消息	4=系统消息消息
     */
    @TableField("MsgType")
    private Integer msgType;

    /**
     * 数据Id
     */
    @TableField("DataId")
    private Long dataId;

    /**
     * 消息内容
     */
    @TableField(value = "Content", typeHandler = BlobTypeHandler.class)
    private byte[] content;

    /**
     * 状态 1=未消费	2=消费成功	3=消费失败
     */
    @TableField("MsgStatus")
    private Integer msgStatus;

    /**
     * 发送次数
     */
    @TableField("MsgTimes")
    private Integer msgTimes;

    /**
     * 备注
     */
    @TableField("Remark")
    private String remark;

    /**
     * 创建时间
     */
    @TableField("CreateTime")
    private LocalDateTime createTime;

}
